<template>
  <div class="count-num">
    <ICountUp
      :endVal="countNum"
      :options="countOptions"
    />
  </div>
</template>

<script>
import ICountUp from 'vue-countup-v2'
export default {
  props: {
    countNum: {
      type: Number,
      default: 0
    }
  },
  components: {
    ICountUp
  },
  data () {
    return {
      countOptions: {
        useEasing: true,
        useGrouping: true,
        separator: ',',
        decimal: '.',
        prefix: '',
        suffix: ''
      }
    }
  }
}
</script>
